<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>表格</title>
	</head>
	<body>
		<table border="1" cellspacing="0" width="600px" height="450px" cellpadding="30px" align="center">
			<caption>
				<h1>表格的标题</h1>
			</caption>
			<tr bgcolor="pink">
				<th>姓名</th>
				<th>性别</th>
				<th bgcolor="red">爱好</th>
				<th>住址</th>
			</tr>
			<tr bgcolor="yellow">
				<td>张波</td>
				<td rowspan="3">男</td>
				<td>绕口令</td>
				<td>航天城</td>
			</tr>
			<tr bgcolor="blue">
				<td>王杰</td>
				<!-- <td>男</td> -->
				<td>吃火锅</td>
				<td>市图书馆</td>
			</tr>
			<tr bgcolor="red">
				<td>卢辉</td>
				<!-- <td>男</td> -->
				<td>敲代码</td>
				<td>韦曲南</td>
			</tr>
			<tr bgcolor="lightgreen">
				<td>张紫璇</td>
				<td>女</td>
				<td>听歌</td>
				<td>蓝田</td>
			</tr>
			<table border="1" cellspacing="0" width="600px" height="450px" cellpadding="30px" align="center">
				<caption>
					<h1>表格的标题</h1>
				</caption>
				<tr>
					<th>姓名</th>
					<td>张波</td>
					<td>王杰</td>
					<td>卢辉</td>
					<td>张紫璇</td>
				</tr>
				<tr>
					<th>性别</th>
					<td colspan="3">男</td>
					<!-- <td>男</td> -->
					<!-- <td>男</td> -->
					<td>女</td>
				</tr>
				<tr>
					<th>爱好</th>
					<td>绕口令</td>
					<td>吃火锅</td>
					<td>敲代码</td>
					<td>听歌</td>
				</tr>
				<tr>
					<th>住址</th>
					<td>航天城</td>
					<td>市图书馆</td>
					<td>韦曲南</td>
					<td>蓝田</td>
				</tr>
		</table>
	</body>
</html>